home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / Headers / TermWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  3.0 KB  |  101 lines  |  [TEXT/MPS ]

  1. /************************************************************************************************/
  2. /*                                                                                                */
  3. /*    Program Name:    Stiletto                                                                    */
  4. /*                                                                                                */
  5. /*    File Name:        TermWindow.h                                                                */
  6. /*                                                                                                */
  7. /*    © Apple Computer, Inc. 1991-1995                                                            */
  8. /*    All Rights Reserved                                                                            */
  9. /*                                                                                                */
  10. /*    Revision History:                                                                            */
  11. /*                                                                                                */
  12. /*        Date        Who                    Modification                                            */
  13. /*                                                                                                */
  14. /*        1991-07-01    Chris Halim            Original version                                        */
  15. /*        1995-06-26    Jaakko Railo        Version 2.0                                                */
  16. /*                                                                                                */
  17. /************************************************************************************************/
  18.  
  19. /****************************************** DESCRIPTION ******************************************
  20.  
  21. *************************************************************************************************/
  22.  
  23. /************************************************************************************************/
  24. /************************************************************************************************/
  25.  
  26.  
  27. #ifndef    __TERMWINDOW__
  28. #define    __TERMWINDOW__
  29.  
  30.  
  31. #ifndef __TELEPHONES__
  32. #include "Telephones.h"
  33. #endif
  34.  
  35. #ifndef __DNWINDOW__
  36. #include "DNWindow.h"
  37. #endif
  38.  
  39. //#ifndef __RPWINDOW__
  40. //#include "RPWindow.h"
  41. //#endif
  42.  
  43.  
  44. #if defined(powerc) || defined (__powerc)
  45. #pragma options align=mac68k
  46. #endif
  47. struct TelWindowRec {
  48.     WindowRecord    fWindowRecord;
  49.     TELHandle        fTELHandle;                // a handle to this term record
  50.     DNWindowPtr        fDNWindowList;            // a link-list of windowptr corresponding to this term's DNs
  51.     ListHandle        fDNList;                // list manager record containing DNs
  52.     FeatureListPtr    fFeatureList;            // list of specific system features
  53. //    RPWindowPtr        fRPWindow;                // the rpwindow belonging to this terminal
  54. };
  55. #if defined(powerc) || defined(__powerc)
  56. #pragma options align=reset
  57. #endif
  58.  
  59. typedef struct TelWindowRec TelWindowRec;
  60.  
  61. typedef TelWindowRec *TelWindowPtr;
  62.  
  63.  
  64. #ifdef __cplusplus
  65. extern "C" {
  66. #endif    
  67.  
  68.  
  69. OSErr    InitCTBManagers (void);
  70.  
  71. short    CreateTelWindow (TelWindowPtr * telWindow, const Rect * windowRect, TELHandle hTEL);
  72. void    DisposeTelWindow (TelWindowPtr telWindow);
  73.  
  74. Boolean    IsHandledByTelWindow (TelWindowPtr telWindow, const EventRecord * theEvent);
  75.  
  76. OSErr    InstallTermHandler (TelWindowPtr telWindow);
  77. pascal void    TermMsgHandler (TELHandle termHand, long msg, short mtype, short value, long ourA5);
  78. pascal void    AllTermMsgsHandler (TELHandle termHand, long msg, short mtype, short value, long ourA5);
  79.  
  80. void    DumpTermInfo (TelWindowPtr telWindow);
  81. void    DumpTermEvents (TelWindowPtr telWindow);
  82. void    DumpSelectedDNInfo (TelWindowPtr telWindow);
  83. void    DumpSelectedDNEvents (TelWindowPtr telWindow);
  84.  
  85. void    HandleFeatureMenu (TelWindowPtr telWindow, short menuID, short menuItem, short modifiers);
  86.  
  87. TELCAHandle    GetAnyCA (TelWindowPtr telWindow);
  88. TELCAHandle    GetActiveCA (TELHandle termHand);
  89.  
  90. TELDNHandle    GetAnyDN (TelWindowPtr telWindow);
  91.  
  92.  
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96.  
  97.  
  98. #endif  /* __TERMWINDOW__ */
  99.  
  100.  
  101.